package cn.touna.jss.modules.third.tencent.entity;


import cn.touna.risk.api.contraints.IdCard;
import cn.touna.risk.api.contraints.Mobile;
import cn.touna.risk.api.contraints.facet.First;
import cn.touna.risk.api.domain.BaseDomain;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.GroupSequence;

/**
 * 腾讯调用实体类
 * Created by wuwc on 2017/7/31.
 */
@GroupSequence({First.class, TecentRequestEntity.class})
public class TecentRequestEntity extends BaseDomain {

    @NotBlank(message = "身份证号不能为空", groups = {First.class})
    @IdCard(message = "身份证号码格式不对", groups = {First.class})
    private String idCard;
    @NotBlank(message = "手机号码不能为空", groups = {First.class})
    @Mobile(message = "手机号格式不对", groups = {First.class})
    private String mobile;
    private String bankCardNo;
    private String userIp;

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getBankCardNo() {
        return bankCardNo;
    }

    public void setBankCardNo(String bankCardNo) {
        this.bankCardNo = bankCardNo;
    }

    public String getUserIp() {
        return userIp;
    }

    public void setUserIp(String userIp) {
        this.userIp = userIp == null ? null : userIp.trim();
    }

}
